import { Injectable } from '@nestjs/common';
@Injectable()
export class AppService {
  getHello(): string {
    return 'Hello World!';
  }

  login(flag): object {
    let status = flag ? 200 : 404 ;
    let data = flag ? '登录成功' : '登录失败' ;
    console.log(flag,{
      status ,
      data
    })
    return {
      status ,
      data
    };
  }
  zhuce(flag){
    return {
      status :flag ? 200 : 500,
      data : flag ? '注册成功' : '注册失败'
    };
  }
}
